//
//  City.m
//  OC07_MRC省市区
//
//  Created by Hanlingyu on 16/7/12.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "City.h"

@implementation City
@synthesize array = _array;

//- (instancetype)initWithName:(NSString *)name {
//    self = [super initWithName:name];
//    if (self) {
//        _array = [NSMutableArray array];
//    }
//    return self;
//}

+ (instancetype)zoneWithName:(NSString *)name {
    City *city = [[City alloc] initWithName:name];
    return [city autorelease];
}
- (void)dealloc {
    [_array release];
    [super dealloc];
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@", _array];
}

- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super initWithName:name number:number];
    if (self) {
        _array = [NSMutableArray array];
    }
    return self;
}



@end
